package com.ruoyi.project.treat.service.impl;

import com.ruoyi.project.treat.domain.SystemDept;
import com.ruoyi.project.treat.domain.SystemTregistraFee;
import com.ruoyi.project.treat.mapper.TreatRegisteredMapper;
import com.ruoyi.project.treat.service.ITreatRegisteredService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TreatRegisteredServiceImpl implements ITreatRegisteredService {
    @Autowired
    private TreatRegisteredMapper registeredMapper;

    /**
     * 查询出所有的挂号类型
     * @return
     */
    @Override
    public List<SystemTregistraFee> selectSystemTregistraFeeList() {
        return registeredMapper.selectSystemTregistraFeeList();
    }

    /**
     * 根据挂号类型查询对应的挂号费用
     * @param registraName
     * @return
     */
    @Override
    public SystemTregistraFee selectSystemTregistraFee(String registraName) {
        return registeredMapper.selectSystemTregistraFee(registraName);
    }


    /**
     * 查询出所有的科室
     * @return
     */
    @Override
    public List<SystemDept> selectSystemDeptList(SystemDept dept) {
        return registeredMapper.selectSystemDeptList(dept);
    }
}
